package com.ruoyi.job.controller;

import com.ruoyi.job.task.RyTask;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestController {

    @Resource
    private RyTask ryTask;

    @GetMapping("run")
    public String run() {
        ryTask.calBzTotalFlow();
        return "hello world";
    }
}
